<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML>
<html lang="zh-CN">
<head>
	<meta charset="UTF-8">
	<title>凯盛项目管理系统</title>
	<link rel="stylesheet" type="text/css" href="../css/bootstrap.min.css" />
</head>
<body class="body">
	
	<%@ include file="../include/top.jsp" %>
	
	<div class="container">
	  <div class="row">
	  
	<%@ include file="../include/left.jsp" %>
	
		<div class="span9">
			<form class="form-horizontal">
        <fieldset>
          <legend>编辑联系人</legend>
          <div class="control-group">
            <label class="control-label" for="input01">姓名</label>
            <div class="controls">
            	<input type="hidden" name="id" value="${contact.id}"/>
              <input type="text" class="span5" id="input01" x-webkit-speech="undefined" name="name" value="${contact.name}"/>
            </div>
          </div>
		   <div class="control-group">
            <label class="control-label" for="input01">公司</label>
            <div class="controls">
              <input type="text" class="span5" id="input01" x-webkit-speech="undefined" name="companyname"value="${contact.companyname }"/>
            </div>
          </div>
		  <div class="line"></div>
		   <div class="control-group">
            <label class="control-label" for="input01">手机</label>
            <div class="controls">
              <input type="text" class="span5" id="input01" x-webkit-speech="undefined" name="tel" value="${contact.tel }"/>
            </div>
          </div>
		   <div class="control-group">
            <label class="control-label" for="input01">固话</label>
            <div class="controls">
              <input type="text" class="span5" id="input01" x-webkit-speech="undefined" name="mobile" value="${contact.mobile}">
            </div>
          </div>
		  <div class="control-group">
            <label class="control-label" for="input01">邮箱</label>
            <div class="controls">
              <input type="text" class="span5" id="input01" x-webkit-speech="undefined" name="mail" value="${contact.mail}">
            </div>
          </div>
		   <div class="line"></div>
		  <div class="control-group">
            <label class="control-label" for="input01">地址</label>
            <div class="controls">
              <input type="text" class="span5" id="input01" x-webkit-speech="undefined" name="address" value="${contact.address }">
            </div>
          </div>
		   <div class="line"></div>
		   <div class="control-group">
            <label class="control-label" for="input01">主页</label>
            <div class="controls">
              <input type="text" name="index" class="span5" id="input01" value="${contact.index }">
			  <p class="help-block">http://www.xxx.com</p>
            </div>
          </div>
		   <div class="control-group">
            <label class="control-label" for="input01">微博</label>
            <div class="controls">
				<select class="span2">
					<option></option>
					<option>新浪微博</option>
					<option>腾讯微博</option>
					<option>Twitter</option>
				</select>
				<div class="input-prepend">
					<span class="add-on">@</span><input class="span2" id="prependedInput" size="16" type="text" name="weibo" value="${contact.weibo}" x-webkit-speech="undefined">
                </div>
				
            </div>
          </div>
		   <div class="control-group">
            <label class="control-label" for="input01">简介</label>
            <div class="controls">
              <textarea class="span5" rows="6" name="content" value="${contact.content }"></textarea>
            </div>
          </div>
		  
		  

          <div class="form-actions">
            <button type="submit" class="btn btn-primary">保存</button>
            <button class="btn" onclick="location.back()">返回</button>
          </div>
        </fieldset>
      </form>          
          	
		</div>
		<div class="span3">
			
		</div>
	  </div>
	</div>
	<script type="text/javascript" src="../js/jquery.min.js"></script>
	<script type="text/javascript" src="../js/bootstrap.min.js"></script>
	<script type="text/javascript" src="../js/redactor/redactor.js"></script>
  	<script type="text/javascript" src="../js/redactor/zh_cn.js"></script>
	  <script type="text/javascript">
	    $(document).ready(function(){
	    	$('.redactor-text').redactor({ 
	            lang: 'zh_cn',
	            buttons: [ 'bold', 'italic', 'deleted', '|',
	    'unorderedlist', 'orderedlist', 'outdent', 'indent', '|', 'link', '|','fontcolor', 'backcolor', '|', 'alignment', '|', 'horizontalrule']
	           });
	    });
	  </script>
</body>
</html>